package com.qf.service.impl;/*
 *徐韬
 *2021/10/15
 *15:46
 */

import com.qf.Dao.UserDao;
import com.qf.entity.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
      UserDao userDao;
//    public void setUserDao(UserDao userDao) {
////        System.out.println("set方法注入了userDao实现类对象");
////        this.userDao = userDao;
////    }
    @Override
    public List<User> showAll() {
        userDao.selectAll();
        System.out.println("userService 执行了");
        return null;
    }
}
